home *** CD-ROM | disk | FTP | other *** search
- global colorauthoringpath
- global importwhere
- global importpath
- global importfilew
- if the short name of this stack is "Resgenie‚Ñ¢" then
- showdialog 1, "503","Please use Resedit to edit these files. Sorry, but it's for your own good!" ,"True"
- do restext ("TEXT", "Exit", colorauthoringpath)
- end if
- put the long name of this stack into importwhere
- delete word 1 of importwhere
- delete char 1 of importwhere
- delete last char of importwhere
- if there is a window importfilew then close window importfilew
- answer file "Choose any file to import sound resources from:"
- if it is empty then do restext("TEXT", "Exit", colorauthoringpath)
- set cursor to watch
- put it into process
- put process into ImportPath
- put FullResList("T=snd ", "O=TNIS", "W=" & process) into resdata
- if word 1 of resdata is "Error" then
- answer resdata
- do restext ("TEXT", "Exit", colorauthoringpath)
- end if
- if resdata is empty then
- answer "There is nothing here to import."
- do restext("TEXT", "Exit", colorauthoringpath)
- end if
- put the last char of process into holdfilename
- delete last char of process
- repeat until it is ":"
- get the last char of process
- if it is not ":" then put it before char 1 of holdFileName
- delete the last char of process
- end repeat
- put holdFileName into ImportFileW
- put "Import: " before char 1 of importfilew
- do sort resdata
- if the number of lines of resdata is 1 then put return & " " after line 1 of resdata
- Listoid Importfilew, resdata, "one", "Import it:", "blue,white", "Chicago","12", "0", "250, 10"
- do restext ("TEXT", "importsoundlist", colorauthoringpath)